package com.example.wangzhenyu.api;

import com.example.wangzhenyu.model.ChapterResponse;
import com.example.wangzhenyu.model.DetailResponse;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ApiService {
    @GET("tangshi/chapter")
    Call<ChapterResponse> getChapters(@Query("appkey") String appkey);

    @GET("tangshi/detail")
    Call<DetailResponse> getDetail(@Query("appkey") String appkey, @Query("detailid") int detailid);
}